package koby99.swing.outline;

import java.awt.GridLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class J15_GridLayout extends JFrame{
	
	public J15_GridLayout() {
		setDefaultLookAndFeelDecorated(true);
		setTitle(" GridLayout - 격자무늬에 배치 ");
		setLayout(new GridLayout(3, 4, 10, 10));
		setBounds(300,300,450,300);
		for(int i = 1; i<=11; ++i){
			add(new JButton( " 버튼 " + i));
		}
		setVisible(true);
	}
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				new J15_GridLayout();
			}
		});
		
	}

}
